﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TestUpdateScript : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        XRes.LoadAsset<Sprite>("Assets/Res/Asset/UI/Sprite/Common/card_job1.png", (sprite) =>
        {
            sr.sprite = sprite;
            //XRes.ReleaseAsset(sprite);
        });
    }
    public GameObject refObj;
    // Update is called once per frame
    void Update()
    {
        
    }

    public SpriteRenderer sr;

    [ContextMenu("Destroy")]
    private void Destroy()
    {
        XRes.ReleaseInstance(this.gameObject);
    }
}
